﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataHandle.ThreadMgr;
using PrgsMgr;
namespace DataHandle
{
    public class SftMgr
    {
        public IntPtr ParentWnd { get; protected set; }
        public SftMgr(IntPtr hWnd)
        {
            this.ParentWnd = hWnd;
            ProgressManager.SetHwnd(this.ParentWnd);
        }
        public void ImportData(string filePath)
        {
            RunningState.BeginRunning();
            Connection con = new Connection();
            ProgressManager.StartNormalThread(con.ImportCpnData, (object)filePath);
        }
        public void ExportData(string filePath)
        {
            RunningState.BeginRunning();
            DataExport data = new DataExport();
            ProgressManager.StartNormalThread(data.Import, (object)filePath);
        }
    }
}
